﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/collegial/";  //应用的地址名
String listActionName = basePath+"CaseSourceCollegial.action?op=searchjs";
String regEditActionName = basePath+"CaseSourceCollegial_regEditPage.action";
String excelActionName=basePath+"CaseSourceCollegial_saExcel.action";
String lookFrameActionName = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/source/CaseSourceReceive_lookItemFrame.action?";
%>
<script language="javascript" src="<%=path %>/js/My97/WdatePicker.js"></script>
<script language="javascript" src="<%=path %>/jslib/orgSelect.js"></script>
<script type="text/javascript">
    		$(function(){
   			$('#inspectDept').orgSelect({
   				inspectDeptId:'inspectDept',
   		        collectDeptId:'collectDept'
   			});	
			//表格初始化
			$('#searchTable').grid({
				title:[<ce:menu/>],
				url:'<%=listActionName%>',
				 queryParams : {
						"search.taxpayerNum" : "",
						"search.involvedEnt" : "",
						"search.caseNum" : "",
						"search.recBeginDate" : "",
						"search.recEndDate" : "",
						"search.caseFrom" : "",
						"search.illegalType" : "",
						"search.inspectDept" : "",
						"search.collectDept" : ""
				 }, //用于查询的参数以及初始值
				//表头列，不建议改动
				frozenColumns:[[   
	                {field:'ck',checkbox:true}
				]],
				//数据列，根据显示的内容进行修改
				columns:[[   
						{field:'caseNumber',title:'案源编号',width:120,sortable:true,editor:'text'},
						{field:'enterprice',title:'涉案企业（个人）名称',width:150,sortable:true,editor:'text'},
						{field:'commitDate',title:'提交合议时间',width:120,sortable:true,editor:'text'},
						{field:'endDate',title:'合议终结时间',width:120,sortable:true,editor:'text'}
				]],
				//功能按钮组
                toolbar:[<ce:jsonBtn/>]
			});
			//查询操作
			$('#search').click(function(){
                defaultSearchAction();
            });		
		});	
		
    		//打开查看页面
     		function viewItem(id){
     			var rows = $('#searchTable').datagrid('getSelections');	
     			var num=rows[0].caseNumber;
     			parent.addTabs_(num+'案源查看','<%=lookFrameActionName%>&chkSelf='+id);
     		}
		//点击编辑按钮后的操作：打开编辑界面
		function regEditPage(){
		    //默认的打开编辑界面操作（编辑页面地址，窗口宽度，窗口高度）
            defaultOpenDealPageHavebtn('<%=regEditActionName%>',650,450,null,'合议记录录入');
		}
		
		function pushItems(){
           
		}
		   function saveAsExcel(){
	    	   if($('#saveExcelFrm').length==0){
	    			$('<iframe id="saveExcelFrm" name="saveExcelFrm" width=0 height=0></iframe>').appendTo(document.body);
	    		}
	    		var f = $('form:first');
	    		var fa = f.attr('action');
	    		f.attr('target','saveExcelFrm');
	    		f.attr('action','<%=excelActionName%>');
	    		f[0].submit();
	    		f.attr('target','');
	    		f.attr('action',fa);
	        } 
		
    </script>
<html>
  <head>
    <title>市局合议台账</title>
  </head> 
<body class="easyui-layout">
<form id="excelSearch">
<div class="div_height_auto" data-options="region:'north',border:false" style="overflow: hidden;" align="left">
       <table>
<tr>
	<td align="right">纳税人识别号：</td><td><input type="text" name="search.taxpayerNum" id="taxpayerNum" style="width:100px;"/></td>
	<td align="right">涉案企业名称：</td><td><input type="text" name="search.involvedEnt" id="involvedEnt"  style="width:100px;"/></td>
	<td align="right">案源编号：</td><td><input type="text" name="search.caseNum" id="caseNum"  style="width:100px;"/></td>
	<td align="right">接收日期：</td>
	<td><input type="text" name="search.recBeginDate" id="recBeginDate" style="width:100px;" class="Wdate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" readonly="true"/>&nbsp;至&nbsp;
	    <input type="text" name="search.recEndDate" id="recEndDate"  style="width:100px;"  class="Wdate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" readonly="true"/>
	</td>
</tr>
<tr>
	<td align="right">案件来源：</td><td><ce:dictSelect name="search.caseFrom" id="caseFrom"  dictName="备选案源台账-案件来源" allOption="true" style="width:100px;"/></td>
	<td align="right">涉嫌违法类型：</td><td><ce:dictSelect name="search.illegalType" id="illegalType"    dictName="备选案源台账-涉嫌违法类型" allOption="true" style="width:100px;"/></td>
	<td align="right">所属稽查局：</td><td><select name="search.inspectDept" id="inspectDept"  style="width:100px;"></select></td>
	<td align="right">所属征管局：</td>
	<td colspan="2">
	<select name="search.collectDept" id="collectDept"  style="width:100px;"></select>
	</td>
	<td rowspan="2">
	   <a id="search" href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-search">查询</a>
	   <a id="resetSearch" href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-redo">重置</a>
	</td>
</tr>
</table>
</div>
<div data-options="region:'center',border:false" style="overflow: hidden;">
  <table id="searchTable"></table>
</div>
</form>
</body>
</html>
   
   

